﻿<UserControl x:Class="Pictures.WidgetControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Grid.ColumnSpan="2">
    <UserControl.Resources>
        <Storyboard x:Key="SwitchPictureAnim">
            <DoubleAnimation Storyboard.TargetName="PictureTranslate" Storyboard.TargetProperty="X" From="0" To="-250" Duration="0:0:0.7" AccelerationRatio="0.6" Completed="DoubleAnimationCompleted" FillBehavior="Stop"/>
        </Storyboard>
    </UserControl.Resources>
    <Grid ClipToBounds="True">
        <Image Name="PictureBg" Stretch="UniformToFill">
            <Image.RenderTransform>
                <TranslateTransform x:Name="PictureBgTranslate"/>
            </Image.RenderTransform>
        </Image>
        <Image Name="Picture" Stretch="UniformToFill">
            <Image.RenderTransform>
                <TranslateTransform x:Name="PictureTranslate"/>
            </Image.RenderTransform>
        </Image>
        <TextBlock Foreground="White" Text="Pictures" FontSize="14" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="10,0,0,10"/>
    </Grid>
</UserControl>
